package com.rick.test;

import cn.hutool.http.HttpRequest;
import cn.hutool.json.JSONUtil;
import com.rick.entity.PushDeviceReq;

public class Ttest {

    public static void main(String[] args) {
        String url = "http://10.101.108.141:32217/notification-web-api/api/v2/push/pushDevice";

        PushDeviceReq pushDeviceReq = new PushDeviceReq(
                "144115205364751550",
                "5f2bb768",
                "1",

                "文具昂和",
                100.00,
                "1",
                "生产"
        );
        String body = HttpRequest.post(url)
                .body(JSONUtil.toJsonStr(pushDeviceReq))
                .execute().body();

        System.out.println("body = " + body);
    }
}
